#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define ARR_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))


//@file   : null
//@author : Chizuru
//@date   : 2024/4/1
//@brief  : null

#define ERROR_CHECK(ret, error_flag, msg) \
    do{ \
        if((ret) == (error_flag)){ \
            printf("error: %s\n",msg); \
            exit(1); \
        } \
    }while(0)

typedef struct node {
    int data;
    struct node* next;
}ElemSN;


void add_head2(ElemSN** p_list, int new_val) {

}






int main(void) {
    int* arr = calloc(8,sizeof(int));
    //for (int i = 0; i < 8; arr[i] = i, i++);
    //printf("%d", arr[2]);
    
    free(arr);
    arr = NULL;

    int* tmp = arr;
    for (int i = 0; i < 8; i++) {
        printf("%d\n", tmp[i]);
    }

    //printf("%d",arr[2]);


}
